<!--
  @author yangjiangming
  @date 2018-12-10 20:40:28
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html th:replace="~{work/modify/common/layout :: layout('修改渠道', ~{::title}, ~{::content}, ~{::script})}"
      xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <title>工单管理-修改渠道</title>
</head>
<body>

<div th:fragment="content">
    <style>
        .d-width-input {
            width: 250px;
        }

        .layui-form-item .d-width-label {
            width: 60px;
        }

        .d-width-textarea {
            width: 800px;
        }
    </style>
    <form class="layui-form" action="">
        <input type="hidden" id="work-id" name="workId" th:value="${orderWork.workId}">
        <input type="hidden" id="order-id" name="orderId" th:value="${orderWork.orderId}">
        <div class="layui-form-item">
            <label class="layui-form-label d-width-label">现渠道</label>
            <div class="layui-inline ">
                <input type="text" name="original-channel" th:value="${orderWork.channelName}" value=""
                       class="layui-input layui-bg-gray d-width-input" readonly>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label d-width-label">新渠道</label>
                <div class="layui-inline d-width-input">
                    <select name="channelId" lay-verify="required" id="" lay-search="">
                        <option value=""></option>
                        <zmn th:each="channel:${channelList}">
                            <option th:value="${channel.value}" th:text="${channel.text}"></option>
                        </zmn>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label" style="width: 70px;">渠道订单号</label>
                <div class="layui-inline">
                    <input type="text" name="outerId" lay-verify="length100" class="layui-input d-width-input"
                           placeholder="请输入" autocomplete="off">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label d-width-label">缘由</label>
            <div class="layui-inline">
                <textarea name="reason" placeholder="最长不能超过1000字" lay-verify="length"
                          class="layui-textarea d-width-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item" style="text-align: center;margin-top: 30px">
            <div class="layui-inline">
                <input type="button" class="layui-btn layui-btn-normal" lay-submit value="保存"></input>
                <!--<button class="layui-btn layui-btn-primary" type="reset">重置</button>-->
            </div>
        </div>
    </form>
</div>

<script th:inline="javascript">
    var layuiModel = {
        oms_work_modify_channel: "work/modify/zmn.oms.work.modify.channel"
    };
</script>
</body>
</html>